.topbar-wrapper {
    width: 100%;
    line-height: 40px;
    background-color: #333;
}

.topbar a {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
}

/* 移入效果 */
.topbar a:hover {
    color: white;
}

.service {
    float: left;
}

/* 添加分割线（除最后一个元素） */
.service li:not(:last-of-type) a:after,
.user-info li:not(:last-of-type) a:after {
    content: '';
    background-color: #444;
    width: 1.2px;
    height: 14px;
    margin: 13px 10px;
    float: right;
}

/* 设置分割线 */
.topbar .line {
    font-size: 12px;
    color: #424242;
    padding: 0 8px;
}

/* 设置左侧导航栏 */
.service,
.topbar li {
    float: left;
}

.shop-cart,
.user-info {
    float: right;
}

.shop-cart {
    margin-left: 16px;
}

.shop-cart a {
    width: 120px;
    background-color: #424242;
    text-align: center;
}

.shop-cart:hover a {
    background-color: white;
    color: #FF6700;
}

.app-wrapper {
    position: relative;
}

.app-wrapper:hover .qrcode,
.app-wrapper:hover .arrow {
    display: block;
    height: 148px;
}

/* 设置app下的小三角 */
.app-wrapper .arrow {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    /* 设置四个方向的边框 */
    border: 7px solid transparent;
    /* 去除上边框 */
    border-top: none;
    /* 设置下边框的颜色 */
    border-bottom-color: white;
    bottom: 0;
    left: 0;
    right: 17px;
    margin: auto;
}

/* 下载二维码弹出层 */
.app-wrapper .qrcode {
    /* display: none; */
    position: absolute;
    left: -38px;
    width: 124px;
    /* height: 148px; */
    height: 0;
    overflow: hidden;
    background-color: white;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    /* 设置过渡动画 */
    transition: height 0.3s;
}


.app-wrapper .qrcode span {
    color: black;
    font-size: 14px;
}

/* 设置二维码图片 */
.app-wrapper .qrcode img {
    width: 90px;
    margin: 17px;
    margin-bottom: 10px;
}

/* 设置中间的header */
.header {
    height: 100px;
}

.header .logo {
    float: left;
    position: absolute;
}

.header .logo a {
    display: block;
    width: 56px;
    height: 56px;
    /* background-image: url(../img/logo-mi2.png); */
    background: url(//cdn.cnbj1.fds.api.mi-img.com/mi.com-assets/shop/img/logo-mi2.png) no-repeat;
    background-size: 56px;

}

.header-wrapper {
    position: relative;
}

/* 中间导航条 */
.header .nav-wrapper {
    float: left;
}

.nav-wrapper .nav {
    line-height: 100px;
    margin-left: 100px;
    background-color: red;
}

.nav-wrapper li {
    float: left;
}

.nav-wrapper li a {
    font-size: 16px;
    padding: 10px;
    color: #333;
}

.all-goods {
    visibility: hidden;
}

.nav-wrapper li a:hover {
    color: #ff6700;
}

/* 商品弹出层 */

.nav .goods-info {
    /* height: 228px; */
    height: 0;
    width: 100%;
    overflow: hidden;
    background-color: white;
    /* border-top:1px solid rgb(224, 224, 224); */
    /* box-shadow:0 5px 3px rgba(0, 0, 0, .3); */
    position: absolute;
    top: 100px;
    left: 0;
    transition: height 0.3s;
}

.nav-wrapper .show-goods:hover~.goods-info,
.goods-info:hover {
    height: 228px;
    border-top: 1px solid rgb(224, 224, 224);
    box-shadow: 0 5px 2px rgba(224, 224, 224, .3);
}